package com.example.bilibili_fake.ui.hot

import androidx.fragment.app.viewModels
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.example.bilibili_fake.R

class HotFragment : Fragment() {

    companion object {
        fun newInstance() = HotFragment()
    }

    private val viewModel: HotViewModel by viewModels()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        // TODO: Use the ViewModel
    }

    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View {
        val view = inflater.inflate(R.layout.fragment_hot, container, false)
        val textView = view.findViewById<TextView>(R.id.text_hot)
        textView.text = "这是热门页面"
        return view
    }
}